<div id="w955">
<!--档案-->
	<div class="file">
<!--上面部分-->
<?php if($type==service_type::DESIGNER):?>
		<div class="fileTop">
			<ul>
				<li class="fileTopH1">设计师留言.</li>
			</ul>
		</div>
		<div id="line"></div>  
		<!--下面-->
		<div class="fileUser">
			<div class="fileHead"><img src="<?php echo $user['imageUrl'];?>" /></div>
			<div class="CustomerImg"></div>
			<div class="CustomerUl">
				<form id="message" action="<?php echo url('user/message');?>" method="post">
					<ul class="CustomerUls">
						<li class="fileLis">
							<ul>
								<li class="filename">从业时间</li>
								<li class="fileTd"><input name="message[jobHours]" type="text" /></li>
							</ul>
						</li>
						<li class="fileLis">
							<ul>
								<li class="filename">设计机构</li>
								<li class="fileTd"><input name="message[jobAgency]" type="text" /></li>
							</ul>
						</li>
						<li class="fileLis">
							<ul>
								<li class="filename">联系电话</li>
								<li class="fileTd"><input name="message[tel]" type="text" /></li>
							</ul>
						</li>
						<li class="fileLis">
							<ul>
								<li class="filename">办公地址 </li>
								<li class="fileTd"><input name="message[jobAddr]" type="text" /></li>
							</ul>
						</li>
						<li class="userLis">
							<ul>
								<li class="username">留言内容</li>
								<li class="userTd"><textarea name="message[content]" class="usertextarea"></textarea></li>
							</ul>
						</li>
					</ul>
					<div class="Submit">
						<input type="image"  id="SubmitImg"src="<?php echo public_path('images/Submit.jpg');?>" value="提交" />
					</div>
					<input type="hidden" name="message[type]" value="<?php echo $type;?>" />
				</form>
			</div>
		</div>
<?php else:?>
<!--上面部分-->
		<div class="fileTop">
			<ul>
				<li class="fileTopH1">客户留言.</li>
			</ul>
		</div>
		<div id="line"></div>  
<!--下面-->
	<div class="fileUser">
		<div class="fileHead"><img src="<?php echo $user['imageUrl'];?>" /></div>
		<div class="userImg"></div>
		<div class="userUl">
			<form id="message" action="<?php echo url('user/message');?>" method="post">
				<ul class="userUls">
					<li class="fileLis">
						<ul>
							<li class="filename">姓名</li>
							<li class="fileTd"><input name="message[name]" type="text"  /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">电话</li>
							<li class="fileTd"><input name="message[tel]" type="text" /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">邮箱 </li>
							<li class="fileTd"><input name="message[email]" type="text" /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">项目类型</li>
							<li class="fileTd"><input name="message[caseType]" type="text" /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">产型面积</li>
							<li class="fileTd"><input name="message[caseSize]" type="text" /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">项目地址</li>
							<li class="fileTd"><input name="message[caseAddr]" type="text" /></li>
						</ul>
					</li>
					<li class="fileLis">
						<ul>
							<li class="filename">预算费用</li>
							<li class="fileTd"><input name="message[caseCost]" type="text" /></li>
						</ul>
					</li>
					<li class="userLis">
						<ul>
							<li class="username">留言内容</li>
							<li class="userTd"><textarea name="message[content]" class="usertextarea"></textarea></li>
						</ul>
					</li>
				</ul>
				<div class="Submit">
					<input type="image"  id="SubmitImg"src="<?php echo public_path('images/Submit.jpg');?>" value="提交" />
				</div>
				<input type="hidden" name="message[type]" value="<?php echo $type;?>" />
			</form>
		</div>
	</div>
<?php endif;?>
	</div>      
</div>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.form.js');?>" ></script>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.validate.js');?>"></script>
<script type="text/javascript" src="<?php echo public_path('js/admin/jquery.admin.js');?>" ></script>
<script type="text/javascript">
$(document).ready(function(){
	submitForm("#message",{
		dataType:'json',
		success:function(data){
				if(data.s=='1'){
					history.go(-1);	
				}else{
					alert(data.i);
				}
			},
	});		
});
</script>
